#include <iostream>
#include <string>
#include <cctype>

using namespace std;

// 3136. 有效单词
// https://leetcode.cn/problems/valid-word/description/?envType=daily-question&envId=2025-07-15

class Solution
{
public:
    bool isValid(string word)
    {
        int n = word.size();
        if (n < 3)
        {
            return false;
        }
        string valid = "aeiouAEIOU";
        int validCnt = 0;
        int consonantCnt = 0;
        for (int i = 0; i < n; i++)
        {
            if (isalpha(word[i]))
            {
                if (valid.find(word[i]) != string::npos)
                {
                    validCnt++;
                }else{
                    consonantCnt++;
                }
            }else if(isdigit(word[i])){
                continue;
            }else{
                return false;
            }
        }
        return validCnt && consonantCnt;
    }
};

int main()
{
    return 0;
}